<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>约拍平台 - 登录</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: #f8f8f8;
            margin: 0;
            padding: 0;
            color: #333;
            height: 100vh;
        }
        .login-container {
            max-width: 100%;
            padding: 0 24px;
        }
        .form-input {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            background-color: white;
            margin-bottom: 16px;
        }
        .form-input:focus {
            outline: none;
            border-color: #3b82f6;
        }
        .social-login-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: white;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }
        .login-btn {
            width: 100%;
            padding: 12px;
            background-color: #3b82f6;
            color: white;
            border-radius: 8px;
            font-weight: 500;
            text-align: center;
        }
        .login-btn:disabled {
            background-color: #93c5fd;
        }
        .tab-active {
            color: #3b82f6;
            border-bottom: 2px solid #3b82f6;
        }
    </style>
</head>
<body>
    <!-- 状态栏将通过JS加载 -->
    
    <div class="pt-7 h-full flex flex-col">
        <!-- 顶部标签栏 -->
        <div class="bg-white px-4 py-3 flex items-center justify-between sticky top-0 z-10 shadow-sm">
            <a href="#" class="text-gray-800" onclick="history.back(); return false;">
                <i class="fas fa-arrow-left"></i>
            </a>
            <div class="flex-1 flex justify-center">
                <div class="flex">
                    <div class="px-6 py-2 tab-active">登录</div>
                    <div class="px-6 py-2 text-gray-500">注册</div>
                </div>
            </div>
            <div class="w-5"></div>
        </div>
        
        <!-- 登录表单 -->
        <div class="flex-1 flex flex-col justify-center login-container">
            <div class="mb-8">
                <h1 class="text-2xl font-bold mb-2">欢迎回来</h1>
                <p class="text-gray-500">登录后体验更多约拍服务</p>
            </div>
            
            <div class="mb-6">
                <div class="relative">
                    <input type="tel" class="form-input pl-12" placeholder="请输入手机号码">
                    <div class="absolute left-4 top-1/2 transform -translate-y-1/2 text-gray-400">
                        <span>+86</span>
                    </div>
                </div>
                
                <div class="relative">
                    <input type="text" class="form-input" placeholder="请输入验证码">
                    <button class="absolute right-3 top-1/2 transform -translate-y-1/2 text-blue-500 text-sm">
                        获取验证码
                    </button>
                </div>
            </div>
            
            <button class="login-btn mb-4">登录</button>
            
            <div class="flex items-center justify-between mb-8">
                <div class="text-xs text-gray-500">
                    <input type="checkbox" id="agreement" class="mr-1">
                    <label for="agreement">我已阅读并同意</label>
                    <a href="#" class="text-blue-500">《用户协议》</a>和
                    <a href="#" class="text-blue-500">《隐私政策》</a>
                </div>
                <a href="#" class="text-xs text-blue-500">密码登录</a>
            </div>
            
            <!-- 第三方登录 -->
            <div class="mt-auto">
                <div class="flex items-center justify-center mb-6">
                    <div class="h-px bg-gray-200 flex-1"></div>
                    <div class="mx-4 text-gray-400 text-sm">其他登录方式</div>
                    <div class="h-px bg-gray-200 flex-1"></div>
                </div>
                
                <div class="flex justify-center space-x-8">
                    <div class="social-login-btn">
                        <i class="fab fa-weixin text-2xl text-green-500"></i>
                    </div>
                    <div class="social-login-btn">
                        <i class="fab fa-qq text-2xl text-blue-400"></i>
                    </div>
                    <div class="social-login-btn">
                        <i class="fab fa-weibo text-2xl text-red-500"></i>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <script>
        // 加载状态栏
        document.addEventListener('DOMContentLoaded', function() {
            // 创建iOS状态栏
            const statusBar = document.createElement('div');
            statusBar.className = 'bg-black text-white h-7 flex items-center justify-between px-4 text-xs fixed top-0 left-0 right-0 z-50';
            statusBar.innerHTML = `
                <div>
                    <span>9:41</span>
                </div>
                <div class="flex space-x-1">
                    <i class="fas fa-signal"></i>
                    <i class="fas fa-wifi"></i>
                    <i class="fas fa-battery-full"></i>
                </div>
            `;
            document.body.prepend(statusBar);
            
            // 标签切换
            const tabs = document.querySelectorAll('.px-6.py-2');
            tabs.forEach(tab => {
                tab.addEventListener('click', function() {
                    tabs.forEach(t => {
                        t.classList.remove('tab-active');
                        t.classList.add('text-gray-500');
                    });
                    this.classList.add('tab-active');
                    this.classList.remove('text-gray-500');
                });
            });
        });
    </script>
</body>
</html> 